package com.meituan.sdk.model.ddzhkh.merchantreceipt.merchantreceiptVerifyVerifyreceipt;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 商家券验券
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/merchantreceipt/verify/verifyreceipt",
    businessId = 59,
    apiVersion = "10000",
    apiName = "merchantreceipt_verify_verifyreceipt",
    needAuth = true
)
public class MerchantreceiptVerifyVerifyreceiptRequest implements MeituanRequest<MerchantreceiptVerifyVerifyreceiptResponse> {
    /**
    * <p data-diff-id="ct-diff-id-dc2f23e2-e556-4e95-9afd-25d5321a7a4c">订单ID</p>
    */
    @NotBlank(message = "orderId不能为空")
    @SerializedName("orderId")
    private String orderId;
    /**
    * <p data-diff-id="ct-diff-id-ef4ccd82-2d3d-4e3e-ac0e-21cf75ac5e1d">验券数量</p><p data-diff-id="ct-diff-id-88bc08ba-50e0-4af2-8b71-ec85d35ed0a5"><br></p>
    */
    @NotNull(message = "verifyCount不能为空")
    @SerializedName("verifyCount")
    private Integer verifyCount;
    /**
    * <p data-diff-id="ct-diff-id-fb9a00a6-e1b2-4fa7-aadc-eb3d47f58cfa">第三方团单id，同其他接口中的app_deal_id</p><p data-diff-id="ct-diff-id-57e45bfe-cd1e-4600-b731-858cdd98422c"><br></p>
    */
    @NotBlank(message = "dealId不能为空")
    @SerializedName("dealId")
    private String dealId;
    /**
    * <p data-diff-id="ct-diff-id-bfc8edbf-a6cb-4fa2-9aea-25c1ab4be10a">一码多用，1代表一码多用</p><p data-diff-id="ct-diff-id-0b3aa24c-de0f-4a9d-b902-4d1d2468a1bf"><br></p>
    */
    @NotNull(message = "multiUse不能为空")
    @SerializedName("multiUse")
    private Integer multiUse;
    /**
    * <p data-diff-id="ct-diff-id-59e6c36e-813d-402b-a92c-376ba57fc1d8"> 门店ID</p>
    */
    @NotBlank(message = "opPoiId不能为空")
    @SerializedName("opPoiId")
    private String opPoiId;
    /**
    * <p data-diff-id="ct-diff-id-c70498e8-a18a-49d7-a1a5-13411bed388d">券码，逗号分隔</p><p data-diff-id="ct-diff-id-15bd4472-a051-4401-9cda-334078ddff15"><br></p>
    */
    @NotBlank(message = "serialNumberList不能为空")
    @SerializedName("serialNumberList")
    private String serialNumberList;
    /**
    * <p data-diff-id="ct-diff-id-933dd0fd-45d5-42bb-a519-51314e87340b"><br><span style="color: ">流水号（每次核销都需要生成不同的流水号）</span></p>
    */
    @NotBlank(message = "sequenceId不能为空")
    @SerializedName("sequenceId")
    private String sequenceId;

    public String getOrderId() {
        return orderId;
    }
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
    public Integer getVerifyCount() {
        return verifyCount;
    }
    public void setVerifyCount(Integer verifyCount) {
        this.verifyCount = verifyCount;
    }
    public String getDealId() {
        return dealId;
    }
    public void setDealId(String dealId) {
        this.dealId = dealId;
    }
    public Integer getMultiUse() {
        return multiUse;
    }
    public void setMultiUse(Integer multiUse) {
        this.multiUse = multiUse;
    }
    public String getOpPoiId() {
        return opPoiId;
    }
    public void setOpPoiId(String opPoiId) {
        this.opPoiId = opPoiId;
    }
    public String getSerialNumberList() {
        return serialNumberList;
    }
    public void setSerialNumberList(String serialNumberList) {
        this.serialNumberList = serialNumberList;
    }
    public String getSequenceId() {
        return sequenceId;
    }
    public void setSequenceId(String sequenceId) {
        this.sequenceId = sequenceId;
    }


    @Override
    public MeituanResponse<MerchantreceiptVerifyVerifyreceiptResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<MerchantreceiptVerifyVerifyreceiptResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "MerchantreceiptVerifyVerifyreceiptRequest{" + "orderId=" + orderId + "," + "verifyCount=" + verifyCount + "," + "dealId=" + dealId + "," + "multiUse=" + multiUse + "," + "opPoiId=" + opPoiId + "," + "serialNumberList=" + serialNumberList + "," + "sequenceId=" + sequenceId + "}";
    }
}
